package com.huilian.iotbox.client.security.service;//package com.huilian.recharge.reception.security.service;
//
//import com.huilian.recharge.reception.security.vo.UserPrincipal;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.security.crypto.password.PasswordEncoder;
//import org.springframework.stereotype.Service;
//
///**
// * @Author: mich
// * @Date: 2020/2/18 15:26
// */
//@Service
//public class CustomUserDetailsService implements UserDetailsService {
//
//    @Autowired
//    private PasswordEncoder passwordEncoder;
//
//    @Override
//    public UserDetails loadUserByUsername(String usernameOrEmailOrPhone) throws UsernameNotFoundException {
//        return new UserPrincipal(1, passwordEncoder.encode("123456"), 1);
//    }
//}
